home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr20 / prng154c.zip / PRINTGL2.DOC < prev    next >
Text File  |  1995-01-12  |  29KB  |  663 lines

  1.  
  2.  
  3.  
  4.                    PrintGL 1.54 HP-GL, HP-GL/2, and ADI Commands
  5.  
  6.                     (c) Copyright Ravitz Software Inc. 1990,1995
  7.  
  8.  
  9.        Ravitz Software Inc.                              BBS/FAX 606-268-0577
  10.        P.O. Box 25068
  11.        Lexington, KY  40524-5068
  12.        USA                                  Compuserve Cary Ravitz [70431,32]
  13.  
  14.  
  15.        ------------------------------ Contents ------------------------------
  16.  
  17.        PrintGL Initial Information File ......................... PRINTGL.TXT
  18.        PrintGL Documentation File                                 PRINTGL.DOC
  19.        Introduction ....................................................... 3
  20.        HP-GL Commands                                                       3
  21.        HP-GL/2 Commands .................................................. 11
  22.        ADI Commands                                                        13
  23.        HP-GL Character Sets .............................................. 14
  24.  
  25.                                                                           p-3
  26.        Introduction ---------------------------------------------------------
  27.  
  28.          This   document  is   a   description   of   the  subset   of  HP-GL
  29.          (Hewlett-Packard  Graphics  Language), HP-GL/2,  and  ADI  (Autodesk
  30.          Device  Interface) that is supported by  PrintGL.  If you  are using
  31.          PrintGL to work with commercial  graphics software,  then  you  will
  32.          probably not need this manual.  If you are writing graphics software
  33.          you  will  find  here  the information  needed  to  make your output
  34.          compatible with PrintGL.
  35.  
  36.        HP-GL Commands -------------------------------------------------------
  37.  
  38.          PrintGL's HP-GL specification is taken from the  programming manuals
  39.          for the HP 7475A, ColorPro (7440/17440), and 7550A.  The 7550 manual
  40.          is  the  best reference for HP-GL - HP  manual 07550-90001.  PrintGL
  41.          supports  the 7475, and 7440/17440 command sets except for character
  42.          set 8 (Katakana), digitize commands, output commands, the error mask
  43.          command, and some device control  commands.  Supported commands  are
  44.          listed below.  Commands that are not applicable to printing, such as
  45.          pen velocity, are  considered supported  but are completely ignored.
  46.          Commands that are not supported are flagged and then ignored.
  47.  
  48.          In addition, PG,  AF, ES, LO, the enhanced IW command, character set
  49.          5, and proportional spaced fonts, from the 7550, are supported.  And
  50.          forty pens are allowed instead of eight.
  51.  
  52.          In reading a plotfile, PrintGL ignores carriage returns, line feeds,
  53.          and nulls  except where  they may be valid characters (LB,  SM,  DT,
  54.          esc.), and ASCII EOF (026) is interpreted as an end of file mark.
  55.  
  56.          AA x_center , y_center , arc_angle [, chord_angle]
  57.  
  58.            Arc absolute - AA moves  the pen through  an arc,  starting at the
  59.            current position, with the pen in the current up/down state.
  60.  
  61.          AF
  62.  
  63.            Advance full page -  AF  starts  a new plot.  PrintGL starts every
  64.            page with the pen up at 0,0.
  65.  
  66.          AP
  67.  
  68.            Automatic pen pickup - IGNORED
  69.  
  70.          AR x_center_delta , y_center_delta , arc_angle [, chord_angle]
  71.  
  72.            Arc  relative  - AR moves the pen through an arc, starting at  the
  73.            current position, with the pen in the current up/down state.
  74.  
  75.          AS
  76.  
  77.            Acceleration select - IGNORED                                     
  78.  
  79.                                                                           p-4
  80.          CA character_set
  81.  
  82.            Designate alternate character set - See HP-GL Character Sets for a
  83.            list of character sets.
  84.  
  85.          CI radius [, chord_angle]
  86.  
  87.            Circle - CI draws a circle centered at the  current position.  The
  88.            current up/down state and position are unchanged by a CI command.
  89.  
  90.          CP [spaces , lines]
  91.  
  92.            Character plot  - CP moves the pen by character spaces (+ is along
  93.            the text)  and lines  (+ is up), using  the current up/down state.
  94.            Using no parameters is the same as a carriage return/line feed.
  95.  
  96.          CS character_set
  97.  
  98.            Designate standard character set - See HP-GL Character Sets for  a
  99.            list of character sets.
  100.  
  101.          CV
  102.  
  103.            Curved line generator - IGNORED
  104.  
  105.          DF
  106.  
  107.            Default values -  This  sets  default  values  for  the  following
  108.            commands: CA, CS,  DR, DT, ES, FT, IW, LO, LT, PA, PT, SC, SM, SL,
  109.            SR, SS, TL.
  110.  
  111.          DI [run , rise]
  112.  
  113.            Absolute  character direction - DI sets the baseline direction for
  114.            labels. The default is 1,0.
  115.  
  116.          DR [run , rise]
  117.  
  118.            Relative character direction - DR sets the  baseline direction for
  119.            labels. Run and rise are a percentage of P2X-P1X and P2Y-P1Y.  The
  120.            default is 1,0.
  121.  
  122.          DTt
  123.  
  124.            Define label terminator - The label terminator ends an LB command.
  125.            The default is ASCII 003.
  126.  
  127.          EA x_opposite_corner , y_opposite_corner
  128.  
  129.            Edge  rectangle  absolute  - EA draws a rectangle  defined by  the
  130.            current position and the parameters.  The pen position and up/down
  131.            state are unchanged.
  132.  
  133.          EC
  134.  
  135.            Enable cutter - IGNORED                                           
  136.  
  137.                                                                           p-5
  138.          EP
  139.  
  140.            Edge polygon - EP draws the current polygon edge.  Any pen up/down
  141.            used in creating the polygon is respected in drawing the edge.
  142.  
  143.          ER x_opposite_corner_delta , y_opposite_corner_delta
  144.  
  145.            Edge  rectangle relative  -  ER  draws  a rectangle  with  corners
  146.            defined by  the current position  and the command parameters.  The
  147.            current pen position and up/down state are unchanged.
  148.  
  149.          ES [ space [, line]]
  150.  
  151.            Extra space  - ES adds to the  space between characters and lines.
  152.            The  units  are in  character  cells  (1.5*width,  2*height).  The
  153.            allowed range is -1 to 1. -.3333 causes characters to touch.
  154.  
  155.          EW radius , start_angle , sweep_angle [, chord_angle]
  156.  
  157.            Edge  wedge - EW draws a wedge centered  at the  current position.
  158.            The current pen position and up/down state are unchanged.
  159.  
  160.          FP
  161.  
  162.            Fill polygon - FP fills the current polygon.  Pen up/down commands
  163.            used in creating the polygon are ignored.
  164.  
  165.            There is a limit of 4000 fill line segments per polygon.
  166.  
  167.          FS
  168.  
  169.            Force select - IGNORED
  170.  
  171.          FT [type [, spacing [, angle]]]
  172.  
  173.            Fill type - These are the fill types.  Type 2 is identical to type
  174.            1 for PrintGL.
  175.  
  176.              1  solid lines spaced at half the pen thickness (see PT command)
  177.              2  unidirectional solid lines spaced at half the pen thickness
  178.              3  lines at the specified spacing
  179.              4  cross hatched lines at the specified spacing
  180.              5  type ignored
  181.  
  182.            A spacing  parameter  of 0 sets  the  spacing  to 1%  of the P1-P2
  183.            diagonal. Spacing is in x axis units (this is only relevant if the
  184.            axes have different scaling).  PrintGL supports any  integer angle
  185.            for fill. Cross hatched lines are at angle + 90.
  186.  
  187.          IN
  188.  
  189.            Initialize                                                        
  190.  
  191.                                                                           p-6
  192.          IP [p1x , p1y [, p2x , p2y]]
  193.  
  194.            Sets scaling points P1 and P2 - IP sets the scaling points (P1 and
  195.            P2) in plotter units.  P1  and P2 are used by several commands  to
  196.            help with size independent plots.
  197.  
  198.          IW [x_lower_left , y_lower_left , x_upper_right , y_upper_right]
  199.  
  200.            Input window - IW sets a clipping window in plotter units. With no
  201.            parameters, the clipping window is turned off.
  202.  
  203.            If  PrintGL's  /YE switch is  set and user  scaling  is on then IW
  204.            parameters are in user units.  In this case the window is rescaled
  205.            with an IP command, but any SC command locks the current window.
  206.  
  207.          LB..text..terminator
  208.  
  209.            Label - Labels use the current character set, based on CA, CS, SA,
  210.            and SS commands. See HP-GL Character Sets for font specifics.
  211.  
  212.          LO [ position_number ]
  213.  
  214.            Label origin -  LO  sets  the  label  origins,  shown  below.  For
  215.            positions 4..9  and  14..19  the  label buffer is  limited  to 150
  216.            characters. The default is 1.
  217.  
  218.            13                     16                      19
  219.               3......  .......  ...6...  .......  ......9
  220.               .     .  .     .  .     .  .     .  .     .
  221.            12 2     .  .     .  .  5  .  .     .  .     8 18
  222.               .     .  .     .  .     .  .     .  .     .
  223.               1......  .......  ...4...  .......  ......7
  224.            11                     14                      17
  225.  
  226.          LT [pattern_number [, pattern_length]]
  227.  
  228.            Line  type  - PrintGL's line type patterns are close  to, but  not
  229.            identical  to HP's.  Pattern  length is a  percentage of the P1-P2
  230.            diagonal with a default of 4%  and a minimum of 4 dots for types 1
  231.            and 2 and 16 dots for other types.  Negative (adaptive) line types
  232.            from the HP 7550 are supported.
  233.  
  234.            no parameter  solid            1  .               .
  235.                                           2  ________        ________
  236.            0             dots at          3  ____________    ____________
  237.                          endpoints        4  ____________  . ____________  .
  238.                          only             5  __________  __  __________  __
  239.                                           6  ______  __  __  ______  __  __
  240.                                           7  __________  . . __________  . .
  241.                                           8  ______  . __  . ______  . __  .
  242.  
  243.          PA [x , y] [, x , y] ...
  244.  
  245.            Plot absolute - PA sets absolute mode and optionally moves the pen
  246.            in the current up/down state.                                     
  247.  
  248.                                                                           p-7
  249.          PD [x , y] [, x , y] ...
  250.  
  251.            Pen down - PD sets the pen  down and optionally moves it with  the
  252.            current absolute/relative mode.
  253.  
  254.          PG [i]
  255.  
  256.            New page - PG starts a new plot. The parameter is ignored. PrintGL
  257.            starts every page with the pen up at 0,0.
  258.  
  259.          PM i
  260.  
  261.            Polygon mode - PM  0 starts polygon mode.  The current position is
  262.            the first point in the polygon.
  263.  
  264.            PM 1 starts  a new  subpolygon.  The  position after the next  pen
  265.            movement is the first point in the subpolygon.  The first pen move
  266.            of a subpolygon is done with the pen up, regardless of the current
  267.            up/down status.
  268.  
  269.            PM 2 ends polygon mode.
  270.  
  271.            PM  1 and PM 2 close  the current subpolygon with  the current pen
  272.            up/down state. If used without first starting polygon mode (PM 0),
  273.            PrintGL adds an implied PM 0 before processing the PM 1 or PM 2.
  274.  
  275.            The following  commands are accepted in polygon  mode: PM, PA, PR,
  276.            PU, PD,  AA,  AR,  CI  (circles  are  automatically  prefixed  and
  277.            suffixed by PM 1), and IN.
  278.  
  279.            The polygon buffer is limited to 1000 data points.
  280.  
  281.          PR [x_delta , y_delta] [, x_delta , y_delta] ...
  282.  
  283.            Plot relative - PR sets relative mode and optionally moves the pen
  284.            in the current up/down state.
  285.  
  286.          PS
  287.  
  288.            Paper size - IGNORED
  289.  
  290.            PrintGL ignores PS. The paper size must be set with the /L option.
  291.  
  292.          PT [thickness]
  293.  
  294.            Pen  thickness - PT specifies twice the line spacing used in solid
  295.            fills and may be from 0 to 5.0 mm.  It is reset to .3 mm with each
  296.            SP command.
  297.  
  298.          PU [x,y] [,x,y] ...
  299.  
  300.            Pen  up  - PU  raises  the pen and optionally  moves  it with  the
  301.            current absolute/relative mode.                                   
  302.  
  303.                                                                           p-8
  304.          RA x_opposite_corner , y_opposite_corner
  305.  
  306.            Shade  rectangle  absolute  -  RA  fills  a rectangle with corners
  307.            defined  by the current position and the  command parameters.  The
  308.            current  pen  position  and  up/down  state  are  unchanged.   The
  309.            rectangle edge is not drawn.
  310.  
  311.          RO [angle]
  312.  
  313.            Rotate coordinate  system - RO or RO0  sets up a normal coordinate
  314.            system.  RO90, the only other allowed value, sets up a system that
  315.            is rotated 90 degrees.  The type of rotation depends on  the paper
  316.            size.  This command  does  not change the scaling points, so an IP
  317.            command is useful after an RO.
  318.  
  319.            The HP 7475 specifies two different meanings for RO90 depending on
  320.            the  paper  size (A/A4 or B/A3).  PrintGL  decides  which  type of
  321.            rotation to do based on the sum of  the  print  window  width  and
  322.            height.  If this sum  is  greater than 24 inches  then large paper
  323.            rotation is used. Otherwise, small paper rotation is used.
  324.  
  325.            Small paper rotation:              Large paper rotation:
  326.  
  327.            RO 0             RO 90             RO 0             RO 90
  328.  
  329.              y --------    0,0 -------- y     0,0 -------- y    y --------
  330.               |        |      |        |         |        |      |        |
  331.               |        |      |        |         |        |      |        |
  332.            0,0 -------- x    x --------          |        |      |        |
  333.                                                  |        |      |        |
  334.                                                  |        |      |        |
  335.                                                  |        |      |        |
  336.                                                 x --------    0,0 -------- x
  337.  
  338.          RR x_opposite_corner_delta , y_opposite_corner_delta
  339.  
  340.            Shade  rectangle  relative -  RR fills  a rectangle  with  corners
  341.            defined by  the current position and the  command parameters.  The
  342.            current  pen  position  and  up/down  state  are  unchanged.   The
  343.            rectangle edge is not drawn.
  344.  
  345.          SA
  346.  
  347.            Select alternate  character  set  -  SA  specifies  the  alternate
  348.            character set as current.  The alternate character set  is  chosen
  349.            with CA.
  350.  
  351.          SC [xmin , xmax , ymin , ymax]  or  SC xmin,xrto,ymin,yrto,2
  352.  
  353.            Scaling - SC sets user units. The units are defined by user values
  354.            for  P1 (xmin,ymin)  and P2 (xmax,ymax)  or P1 and  the  ratio  of
  355.            plotter to user units.  Using no parameters turns scaling off, and
  356.            subsequent drawing is done in plotter units (1/1016 inch).        
  357.  
  358.                                                                           p-9
  359.          SI [width , height]
  360.  
  361.            Character size absolute - SI sets the capital letter box width and
  362.            height in centimeters.  Letter  spacing  is 1.5 *  width  and line
  363.            spacing  is 2 * height.  Using no parameters with B or A3 paper is
  364.            the same as  SI.285,.375  and  any  other  paper is  the  same  as
  365.            SI.187,.269.
  366.  
  367.          SL [tan_angle]
  368.  
  369.            Character slant - SL sets  the character  slant.  The parameter is
  370.            interpreted as the tangent  of  the angle from vertical.  Using no
  371.            parameter sets the slant to 0 degrees.
  372.  
  373.          SM[c]
  374.  
  375.            Symbol mode  -  SM sets symbol mode, which centers the symbol mode
  376.            character  at  any plotted point.  Any character from ASCII 033 to
  377.            127 except ";" sets symbol mode.  Any other character turns symbol
  378.            mode off.
  379.  
  380.          SP pen_number
  381.  
  382.            Select pen - SP selects a pen.  Using 0 or no parameter stores the
  383.            pen  without selecting a new pen.  This is usually done at the end
  384.            of a plot. PrintGL ignores any drawing with pen 0.
  385.  
  386.          SR [width , height]
  387.  
  388.            Character size relative - SR sets the capital letter box width and
  389.            height as a percentage of  P2X-P1X and P2Y-P1Y.  Letter spacing is
  390.            1.5 * width and line spacing is 2 * height. Using no parameters is
  391.            the same as SR.75,1.5.
  392.  
  393.          SS
  394.  
  395.            Select  standard  character  set  -  SS   specifies  the  standard
  396.            character  set as  current.  The standard character set  is chosen
  397.            with CS.
  398.  
  399.          TL [positive_length [, negative length]]
  400.  
  401.            Tick length -  TL  sets the  tick lengths used by XT and  YT.  The
  402.            parameters are lengths above  and  below the current position as a
  403.            percentage of P2Y-P1Y for x-axis ticks and a percentage of P2X-P1X
  404.            for y-axis ticks.
  405.  
  406.          UC [[pen_control ,] x_delta , y_delta] ...
  407.  
  408.            User character - UC specifies a  user defined character.  The  pen
  409.            control number is 99 for pen down or -99 for pen up. Pen movements
  410.            are relative, with x_delta in units of 1/4 the character width and
  411.            y_delta in units of 1/8 the character height.
  412.  
  413.          VA
  414.  
  415.            Adaptive velocity - IGNORED                                       
  416.  
  417.                                                                          p-10
  418.          VN
  419.  
  420.            Normal velocity - IGNORED
  421.  
  422.          VS
  423.  
  424.            Pen velocity - IGNORED
  425.  
  426.          WG radius , start_angle , sweep_angle [, chord_angle]
  427.  
  428.            Shade  wedge - WG fills a  wedge centered at the current position.
  429.            The current  pen  position and up/down  state are  unchanged.  The
  430.            wedge edge is not drawn.
  431.  
  432.          XT
  433.  
  434.            X-axis tick - XT draws a  vertical line, with  length specified by
  435.            the  TL  command, at the current  position.  The  pen position and
  436.            up/down state are unchanged.
  437.  
  438.          YT
  439.  
  440.            Y-axis tick - YT draws a horizontal line, with length specified by
  441.            the TL  command, at  the  current position.  The  pen position and
  442.            up/down state are unchanged.
  443.  
  444.          esc.(
  445.          esc.Y
  446.  
  447.            Plotter on  - Esc.( and esc.Y turn the plotter  on.  This is  only
  448.            relevant with the /YY option.
  449.  
  450.          esc.)
  451.          esc.Z
  452.  
  453.            Plotter off - Esc.)  and esc.Z turn the plotter off. They are only
  454.            effective with the /YY option. The plotter on and off commands let
  455.            you  include comments or data to pass through to another device in
  456.            the plotfile.  These are flagged as unsupported commands if /YD is
  457.            set, as an indication that you should set /YY.
  458.  
  459.          esc.@, esc.H, esc.I, esc.M, esc.N, esc.R
  460.  
  461.            RS-232 device control commands - IGNORED                          
  462.  
  463.                                                                          p-11
  464.        HP-GL/2 Commands -----------------------------------------------------
  465.  
  466.          PrintGL's HP-GL/2 commands include a subset of HP-GL/2 that lets you
  467.          take  advantage  of  HP-GL/2's  pen  control  and  data compression.
  468.          PrintGL's HP-GL/2 interpreter reads all of the HP-GL commands above,
  469.          except  as noted below.  PrintGL acts like  an  HP-GL/2 plotter, not
  470.          printer,  so  form feeds are done with the PG command  not the  form
  471.          feed character.
  472.  
  473.          The  LA command  is not supported  - all  lines are drawn with round
  474.          ends and round joints. And all clipping is done to the line center.
  475.  
  476.          When the  output format is  HP-GL  all of the  HP-GL/2 extended  pen
  477.          control commands are  ignored.  The PT command  is needed to  ensure
  478.          solid fills look good.
  479.  
  480.          AC [x , y]
  481.  
  482.            Anchor corner - AC  specifies the origin of  stroked fills.  It is
  483.            handled even with HP-GL/2 off.
  484.  
  485.          BP
  486.  
  487.            Begin plot - BP is interpreted as PG;IN;.  It is handled even with
  488.            HP-GL/2 off.
  489.  
  490.          CO "comment"
  491.  
  492.            Comment - This is handled even with HP-GL/2 off.
  493.  
  494.          CR [black_ref_red , green , blue , white_ref_red , green , blue]
  495.  
  496.            Color range - Sets the color ranges used by the PC command.
  497.  
  498.          FT [type [, spacing or shading [, angle]]]
  499.  
  500.            Fill type - When reading HP-GL/2, PrintGL accepts type 10 (shading
  501.            percentage is the additional parameter) and 11 (raster fill number
  502.            is the additional parameter).  Type 11 fills are converted to type
  503.            10 with the shade level taken from the RF command.
  504.  
  505.            For solid  and  shaded fill types, to guarantee  good results, you
  506.            must use the PW command to set the pen width  and  this width must
  507.            magnify to no  more than 24 dots in the final image.  If either of
  508.            these rules is broken, the fill may be striped rather than solid.
  509.  
  510.          IR [p1x , p1y [, p2x , p2y]]
  511.  
  512.            Set  scaling points relative - This is handled even if  HP-GL/2 is
  513.            turned off.
  514.  
  515.          LT [pattern_number [, pattern_length, [mode]]]
  516.  
  517.            Line  type -  HP-GL/2 allows the  additional  parameter to  select
  518.            relative (default)  or absolute  (in mm) pattern lengths.  This is
  519.            handled even with HP-GL/2 off.                                    
  520.  
  521.                                                                          p-12
  522.          NP [number]
  523.  
  524.            Number  of  pens  -  Sets  the number of pens.  This is ignored by
  525.            PrintGL, which can handle up to 256 pens.
  526.  
  527.          PC [pen [, red , green , blue]]
  528.  
  529.            Pen color - Sets the pen color.
  530.  
  531.          PE
  532.  
  533.            Polyline encoded  - This  starts PE mode.  It is handled even with
  534.            HP-GL/2 off.
  535.  
  536.          PT [thickness]
  537.  
  538.            Pen  thickness  -  The  command is  not  part  of  HP-GL/2 and  is
  539.            generally ignored.  If the  output format is HP-GL  or if  you are
  540.            using /Y1 (HP-GL/2 without pen  control) then PT is interpreted as
  541.            it is in HP-GL.
  542.  
  543.          PW [width [, pen]]
  544.  
  545.            Pen width - Sets the  pen width.  After magnification, the maximum
  546.            width is 24 dots. PW is ignored if the output format is HP-GL.
  547.  
  548.          QL
  549.  
  550.            Quality level - IGNORED for HP-GL or HP-GL/2
  551.  
  552.          RF [index [,width, height, pen [.. pen]]
  553.  
  554.            Raster fill - RF is not fully implemented.  Instead it is read and
  555.            the  pattern is  converted to  a shade level.  Pen numbers and the
  556.            specific  pattern are ignored.  The shade level  is saved for  use
  557.            with fill type 11.
  558.  
  559.          RO [angle]
  560.  
  561.            Rotate coordinate system  -  When  reading HP-GL/2,  this  command
  562.            accepts 0, 90, 180, and 270 and always rotates counter-clockwise.
  563.  
  564.          SV [type [, option1 [, option2]]]
  565.  
  566.            Screened vectors - Sets the shade level used  to draw lines.  Only
  567.            modes 0 and 1 are supported.
  568.  
  569.          TR [mode]
  570.  
  571.            Transparency mode - Sets opaque or translucent mode.
  572.  
  573.          UL [index [,gap1, .., gapn]]
  574.  
  575.            User  line type - UL is not fully implemented.  Instead it is read
  576.            and the pattern is converted  to one  of PrintGL's eight  standard
  577.            line types. The gaps must be less that 256.                       
  578.  
  579.                                                                          p-13
  580.          WU [type]
  581.  
  582.            Width units - Sets the units used by the PW command.
  583.  
  584.          esc% .. A
  585.  
  586.            Enter PCL or RTL mode -  This command is treated  like esc.).  All
  587.            commands are ignored until the next esc% .. B.
  588.  
  589.          esc% .. B
  590.  
  591.            Enter  HP-GL/2 mode - This command  is treated like esc.(.  It  is
  592.            required before any commands are interpreted.
  593.  
  594.        ADI Commands ---------------------------------------------------------
  595.  
  596.          With the /YA option PrintGL can read Autodesk ADI 4.0 vector plotter
  597.          binary commands intermixed in the HP-GL. 1016 dpi coordinates or the
  598.          current HP-GL user coordinates are assumed. The table shows each ADI
  599.          command  and  the  equivalent  HP-GL  command   (as  interpreted  by
  600.          PrintGL).  In  the ADI code column, the  code  number  and  "b"s are
  601.          bytes,  and  "x" and  "y"  are words.  Eight line  types (other than
  602.          solid) are supported.
  603.  
  604.            ADI command     ADI code     equivalent HP-GL
  605.  
  606.            begin plot      1 b          ignored
  607.            end plot        2            PG;
  608.            move            3 x y        PUx,y;
  609.            draw            4 x y        PDx,y;
  610.            pen             5 b          SPb;
  611.            speed           6 b          ignored
  612.            line type       7 b          if b=0 then LT; else LTb,2;
  613.            raise pen       8            ignored
  614.            abort           9            ignored                              
  615.  
  616.                                                                          p-14
  617.        HP-GL Character Sets -------------------------------------------------
  618.  
  619.          PrintGL  supports all of the character sets that  are included  with
  620.          the HP 7475 and 7440/17440 except Katakana, and adds character set 5
  621.          and  the  proportional  spaced  fonts   from  the  7550.   PrintGL's
  622.          characters are similar to but not identical to HP's.
  623.  
  624.             0  ANSI ASCII                           30  ISO Swedish
  625.             1  9825 character set                   31  ISO Swedish For Names
  626.             2  French/German                        32  ISO Norway Version 1
  627.             3  Scandinavian                         33  ISO German
  628.             4  Spanish/Latin American               34  ISO French
  629.             5  Special Symbols (7550 extension)     35  ISO United Kingdom
  630.             6  JIS ASCII                            36  ISO Italian
  631.             7  Roman Extensions                     37  ISO Spanish
  632.             8  Katakana - NOT SUPPORTED             38  ISO Portuguese
  633.             9  ISO IRV                              39  ISO Norway Version 2
  634.  
  635.          The character sets specify a font for codes 033..127. Codes 000..032
  636.          and 128..255 are independent of the character set and are all no ops
  637.          except these.
  638.  
  639.            003  default label terminator
  640.            008  backspace                 013  carriage return
  641.            009  half backspace            014  select alternate character set
  642.            010  line feed                 015  select standard character set
  643.            011  reverse line feed         032  space
  644.  
  645.          Each of  the  character sets  is available as a proportional font by
  646.          adding 10 to the set number.  The proportional  fonts  are kerned to
  647.          improve  appearance (the character spacing is adjusted to compensate
  648.          for  character shape).  Use the LO  command to simplify working with
  649.          proportional fonts. To improve the appearance of large text, use the
  650.          ES command to reduce the character spacing.
  651.  
  652.          Codes 65 to 81 in character set 5 are symbols designed to be used in
  653.          symbol mode (SM command) or as one character labels.  When used in a
  654.          label (LB command) these characters  are centered at the current pen
  655.          position and leave the pen position unchanged.                      
  656.  
  657.                                                                          p-15
  658.          The  HP-GL  characters  cannot  be  printed  with the standard ASCII
  659.          character set.  The file PRINTGL2.CHR is  an HP-GL file that  can be
  660.          used  to print  a  replacement for this page, showing  the character
  661.          sets. Set up PrintGL with "magnification" "magnify: 1.0", "position"
  662.          "plot:  0.0,0.0  at print origin", and "window/margins" "default" to
  663.          print this plotfile.